<div id="content">
	<div class="row s_page_title" *ngIf="pageType ==='new'">
		<sa-big-breadcrumbs [items]="['设备安装管理','待维修车辆','新增待维修车辆']" icon="fa fa-wrench" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="row s_page_title" *ngIf="pageType ==='edit'">
		<sa-big-breadcrumbs [items]="['设备安装管理','待维修车辆','编辑待维修车辆']" icon="fa fa-wrench" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="s_page_wrap">
		<div class="page-header">
			<h1 class="page_detail_title" *ngIf="pageType ==='new'">新增待维修车辆</h1>
			<h1 class="page_detail_title" *ngIf="pageType ==='edit'">编辑待维修车辆</h1>
			
		</div>
		<div class="row" style="margin-top:5px;">
		<div class="col-xs-12 pageBody">
			<!--<form  name="resourceForm" id="resourceForm" class="form-horizontal" (ngSubmit)="onSubmit()" novalidate="novalidate" [saBootstrapValidator]="validatorOptions">-->
			<div class="form-horizontal">
				<div>
					<div><h1 class="h1">故障信息</h1></div>
					<div class="form-group s_fix_select2">
						<label class="control-label col-sm-1 no-padding-right">车牌号<sup>*</sup></label>
						<div class="col-sm-10">
							<input [(ngModel)]='carNumber' class="form-control" placeholder="请输入车牌号" disabled *ngIf="pageType ==='edit'"/>
							<div class="clearfix" *ngIf="pageType ==='new'">
								
								<select class="select2 form-control" id="carNumberSelect2" name="carNumber" [(ngModel)]='carNumber' placeholder="" style="width: 100%;">
									<option value=''></option>
								</select>
							</div>
						</div>
					</div>
					<div class="form-group s_fix_select2">
						<label class="control-label col-sm-1 no-padding-right">设备号码<sup>*</sup></label>
						<div class="col-sm-10">
							<input [(ngModel)]='deviceId' class="form-control" placeholder="请输入设备号码" disabled/>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right">故障时间<sup>*</sup></label>
						<div class="col-sm-10">
							<div class="clearfix">
								<input type="text" [(ngModel)]='faultTime' name="faultTime" class="form-control selecTime" id="datetimepicker1" autocomplete="off" placeholder="选择故障时间"/>
							</div>
						</div>
					</div>
					<!--<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right">故障类型</label>
						<div class="col-sm-10">
							<div class="clearfix">
								<select class="form-control" name="faultType"  [(ngModel)]="faultType" style="width: 100%" (change)='faultTypeChange()' >
									<option *ngFor="let item of faultTypeArr" [attr.value]="item.type" > {{item.text}}</option>
								</select>
							</div>
						</div>
					</div>
					<div class="form-group"  *ngFor="let item of faultItemlist;let i=index;">
						<label class="control-label col-sm-1 no-padding-right">故障现象{{i+1}}</label>
						<div class="col-sm-2" style="padding-right: 0;">
							<div class="clearfix" >
								<select class="form-control modelSelect"  style="width: 100%;"  [attr.data]="item.type"  (change)="selectedChange($event,'type',item)">
									<option *ngFor="let _item of phenTypeArr;let li = index;" [value]="_item.type"> {{_item.text}}</option>
								</select>
							</div>
						</div>
						<div class="col-sm-8">
							<span style="position: absolute;left: 4px;top: 6px;">-</span>
							<div class="clearfix" >
								<select class="form-control modelSelect" name="itemSelect" style="width: 100%" [attr.data]="item.phenomenon" (change)="selectedChange($event,'phenomenon',item)">
									<option *ngFor="let _item of phenValueArr" [attr.value]="_item.type" > {{_item.text}} </option>
								</select>
							</div>
						</div>
						
						<div class="col-sm-1">
							<div *ngIf="i<faultItemlist.length-1" (click)="item_del(i)" class="addOrDel">-</div>
							<div *ngIf="i==faultItemlist.length-1" (click)="item_add()" class="addOrDel">+</div>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right">维修指导</label>
						<div class="col-sm-10">
							<div class="clearfix" *ngIf="faultType=='1'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="">无</option>
									<option value="1">更换传感器</option>
								</select>
							</div>
							<div class="clearfix" *ngIf="faultType=='2'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="">无</option>
									<option value="1">更换天线</option>
									<option value="2">更换主机</option>
								</select>
							</div>
							<div class="clearfix" *ngIf="faultType=='3'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="">无</option>
									<option value="1">更换手刹</option>
									<option value="2">更换主机</option>
								</select>
							</div>
							<div class="clearfix" *ngIf="faultType=='4'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="">无</option>
									<option value="1">检查是否有短路</option>
								</select>
							</div>
							<div class="clearfix" *ngIf="faultType=='5'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="">无</option>
									<option value="1">更换线材</option>
								</select>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right">是否推送</label>
						<div class="col-sm-10">
							<select class="form-control"  name="isPush" style="width: 100%" [(ngModel)]='isPush' >
								<option value="0">不推送</option>
								<option value="1">推送</option>
							</select>
						</div>
					</div>-->
					
				
					<!--<div class="form-group col-xs-12 col-sm-4">
						<label class="control-label col-sm-3 no-padding-right">问题开始时间</label>
						<div class="col-sm-9">
							<div class="clearfix">
								<input type="text" name="startTime_problem"  class="form-control getChartTime bottomborder" [(ngModel)]='startTime_problem' placeholder="时间格式：yyyy-MM-dd HH:mm:ss" />
							</div>
						</div>
					</div>-->
					
					<!--<div class="form-group col-xs-12 col-sm-4">
						<label class="control-label col-sm-3 no-padding-right">问题结束时间</label>
						<div class="col-sm-9">
							<div class="clearfix">
								<input type="text" name="endTime_problem" class="form-control getChartTime bottomborder" [(ngModel)]='endTime_problem' placeholder="时间格式：yyyy-MM-dd HH:mm:ss"  />
							</div>
						</div>
					</div>-->
					
					
					<!--<div class="form-group" >
						<label class="control-label col-sm-1 no-padding-right">故障类型<sup>*</sup></label>
						<div class="col-sm-10">
							<div class="clearfix">
								<select  class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.problemType" (change)="problemTypeChange()">
									<option value="">请选择</option>
									<option *ngFor="let item of proTypeOptions;let i=index;" [attr.value]='i'>{{item.name}}</option>
								</select>							
							</div>
						</div>
					</div>-->
					<!-- 上传图片 -->
					<!-- <div class="form-group" *ngIf="proTypeParams.problemType">
						<label class="control-label col-sm-1 no-padding-right">上传图片</label>
						<div class="col-sm-10">
							<div class="clearfix" style="display: flex;">
								<input type="file" id="uploadImg" (change)="uploadChange($event)" accept="image/*" style="display: none;" />		
								<div class="addPic" (click)="upload()" *ngIf="!editFlag">+</div>
								<ul style="display: flex;">
									<li *ngFor="let item of imgList,let index = index;" class="imgList">
										<img [src]="item.imgUrl" [title]="item.name" class="imgUrl" />
										<span title="删除" class="imgClose" (click)="delImg(item)" *ngIf="!editFlag">X</span>
									</li>
								</ul>
							</div>
						</div>
					</div> -->
					
					<div class="form-group" *ngIf="proTypeParams.problemType">
						<label class="control-label col-sm-1 no-padding-right">故障分类<sup>*</sup></label>
						<div class="col-sm-10">
							<div class="clearfix">
								<select  class="form-control inline_block fix_padding bottomborder" name="problemClass" [(ngModel)]="proTypeParams.problemClass" (change)="problemClassChange()">
									<option value="">请选择</option>
									<option *ngFor="let item of proSlectedItem.childs;let i=index;" [attr.value]='i'>{{item.name}}</option>
								</select>							
							</div>
						</div>
					</div>
					
					
					
					<div *ngIf='proTypeParams.problemType=="1"&&proTypeParams.problemClass=="1";else notflag'>
						<div class="form-group" *ngIf="proTypeParams.problemClass&&proSlectedItem.childs[+proTypeParams.problemClass].phenomenon">
							<label class="control-label col-sm-1 no-padding-right">故障现象</label>
							<div class="col-sm-3">
								<div class="clearfix">
									<select  id="sensorPhenName" [(ngModel)]='sensorPhenName' class="form-control inline_block fix_padding bottomborder" >
										<option value="">请选择</option>
										<option value="1">传感器1</option>
										<option value="2">传感器2</option>
										<option value="3">传感器3</option>
										<option value="4">传感器4</option>
										<option value="5">传感器5</option>
										<option value="6">传感器6</option>
										<option value="7">传感器7</option>
										<option value="8">传感器8</option>
										<option value="9">传感器9</option>
										<option value="10">传感器10</option>
										<option value="11">传感器11</option>
										<option value="12">传感器12</option>
										<option value="13">传感器13</option>
										<option value="14">传感器14</option>
										<option value="15">传感器15</option>
										<option value="16">传感器16</option>
									</select>							
								</div>
							</div>
							<div class="form-group col-xs-12 col-sm-7" style="margin-bottom: 0;">
								<label class="control-label col-sm-3 no-padding-right" style="text-align: center;">一一</label>
								<div class="col-sm-9">
									<div class="clearfix">
										<select  class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.phenomenon"  (change)="problemPhenChange()">
											<option value="">请选择</option>
											<option *ngFor="let item of proSlectedItem.childs[+proTypeParams.problemClass].phenomenon;let i=index;" [attr.value]='i'>{{item.name}}</option>
										</select>								
									</div>
								</div>
								<button class="addSensorPhen btn btn-primary" (click)="addseneorPhenItem()">确认</button>
								<!--<label class="control-label col-sm-1 no-padding" style="text-align: center;"><button (click)="addseneorPhenItem()" style="padding: 4px 8px;">+</button> </label>-->
							</div>
						</div>
						
						
						
						<!--<div class="form-group"  *ngFor="let item of seneorPhenlist;let i=index;">
							<div class="col-xs-12 col-sm-9" >
								<label class="control-label col-sm-2 no-padding-right">&nbsp;</label>
								<div class="col-sm-10">
									<div style="position: relative;border-bottom:1px solid #ccc;padding: 6px;">
										<span>{{i+1}} ：{{item.sensorName}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>-</span>&nbsp;&nbsp;&nbsp;&nbsp; {{item.phenomenon}}</span>
										<span style="position: absolute;right: 12px;cursor: pointer;" (click)="delSeneorPhenItem(i)"> × </span>
									</div>
								</div>
							</div>
						</div>-->
						<div class="form-group">
							<label class="control-label col-sm-1 no-padding-right">&nbsp;</label>
							<div class="col-sm-10">
								<div class="ssItemWarp row">
									<div style="color: #ccc;margin-left: 12px;" *ngIf="seneorPhenlist.length == 0">传感器故障确认结果</div>
									<div *ngFor="let item of seneorPhenlist;let i=index;" class="col-xs-3">
										<div class="ssItemStyle" >
											<span>{{i+1}} ：{{item.sensorName}}&nbsp;&nbsp;-&nbsp;&nbsp;{{item.phenomenon}}</span>
											<span class="sensorDelIcon" title = '删除'(click)="delSeneorPhenItem(i)"> × </span>
										</div>
									</div>
								</div>
							</div>
						</div>
						
						
						
					</div>
					
					
					<ng-template #notflag>
						<div >
							<div class="form-group" *ngIf="proTypeParams.problemClass">
								<label class="control-label col-sm-1 no-padding-right">故障现象</label>
								<div class="col-sm-10" *ngIf="!pcIsOther">
									<div class="clearfix">
										<select  class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.phenomenon"  (change)="problemPhenChange()">
											<option value="">请选择</option>
											<option *ngFor="let item of proSlectedItem.childs[+proTypeParams.problemClass].phenomenon;let i=index;" [attr.value]='i'>{{item.name}}</option>
										</select>							
									</div>
								</div>
								
								<div class="col-sm-10" *ngIf="pcIsOther">
									<div class="clearfix" >
										<input [(ngModel)]='otherInpMess' class="form-control" placeholder="请输入问题原因"/>
									</div>
								</div>
							</div>
							
						</div>
					</ng-template>
					
					
					<div class="form-group" *ngIf="proTypeParams.phenomenon&&proSlectedItem.childs[proTypeParams.problemClass].phenomenon[proTypeParams.phenomenon].repairGuide">
						<label class="control-label col-sm-1 no-padding-right">维修指导</label>
						<div class="col-sm-10">
							<div class="clearfix">
								<select  class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.repairGuide" >
									<option value="">请选择</option>
									<option *ngFor="let item of proSlectedItem.childs[+proTypeParams.problemClass].phenomenon[+proTypeParams.phenomenon].repairGuide;let i=index;" [attr.value]='i'>{{item.name}}</option>
								</select>							
							</div>
						</div>
					</div>
					
					<div class="form-group" *ngIf="proTypeParams.problemType=='1'&&proTypeParams.problemClass">
						<label class="control-label col-sm-1 no-padding-right">进厂限制</label>
						<div class="col-sm-10">
						    <div class="inline_block">
                                <label class="radio radio-inline"  style="vertical-align:inherit;">
                                    <input type="radio" class="radiobox" name="0" value="0" [(ngModel)]="isPush">
                                    <span>不限制</span>
                                </label>
                                <label class="radio radio-inline" style="vertical-align:inherit;">
                                    <input type="radio" class="radiobox" name="1" value="1" [(ngModel)]="isPush">
                                    <span>限制</span>
                                </label>
                                <label class="radio radio-inline" style="vertical-align:inherit;">
                                    <input type="radio" class="radiobox" name="time" value="time" [(ngModel)]="isPush">
                                    <span *ngIf="pageType ==='edit' && restrictTime">自定义限制[<span>{{restrictTime}}</span>后进行限制]</span>
                                    <span *ngIf="!restrictTime">自定义限制[<span *ngIf="isPushTime == 6">默认</span><span>{{isPushTime}}</span>小时后进行限制]</span>
                                </label>
                                <input type="number" *ngIf="isPush == 'time' && !restrictTime" οnkeyup="value=value.replace(/[^\d]/g,'')" (change)="inputChange()" name="isPushTime" placeholder="默认6小时" [(ngModel)]="isPushTime" style="width: 84px;padding: 0 12px;"/>
                            </div>
							<!--<div class="clearfix">
								<select name="isPush" class="form-control inline_block fix_padding bottomborder" [(ngModel)]='isPush'>
									<option value="1">限制</option>
									<option value="0">不限制</option>
								</select>
							</div>-->
						</div>
					</div>
				</div>
				<!--<div>-->
					<!--<div> <h1>故障现象</h1></div>-->

					<!--<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right">故障时间<sup>*</sup></label>
						<div class="col-sm-10">
							<div class="clearfix">
								
								<input type="text" [(ngModel)]='faultTime' name="faultTime" class="form-control selecTime" id="datetimepicker1" autocomplete="off" placeholder="选择故障时间"/>
							</div>
						</div>
					</div>-->
					
					<!--<div class="form-group"  *ngFor="let item of faultItemlist;let i=index;">
						<div class="col-sm-1" >
							<div class="clearfix" >
								<select class="form-control modelSelect"  style="width: 100%;"  [attr.data]="item.type"  (change)="selectedChange($event,'type',item)">
									<option *ngFor="let _item of phenTypeArr;let li = index;" [value]="_item.type"> {{_item.text}}</option>
								</select>
							</div>
						</div>
						<div class="col-sm-10">
							<div class="clearfix" >
								<select class="form-control modelSelect" name="itemSelect" style="width: 100%" [attr.data]="item.phenomenon" (change)="selectedChange($event,'phenomenon',item)">
									<option *ngFor="let _item of phenValueArr" [attr.value]="_item.type" > {{_item.text}} </option>
								</select>
							</div>
						</div>
						<div class="col-sm-1">
							<div *ngIf="i<faultItemlist.length-1" (click)="item_del(i)" class="addOrDel">
								-
							</div>
							<div *ngIf="i==faultItemlist.length-1" (click)="item_add()" class="addOrDel">
								+
							</div>
						</div>
					</div>-->
				
	
					
				<!--</div>-->
				<!--<div  >-->
					<!--<div> <h1>维修指导</h1></div>-->
					
					<!--<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right">维修指导</label>
						<div class="col-sm-10">
							<div class="clearfix" *ngIf="faultType=='1'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="1">更换传感器</option>
								</select>
							</div>
							<div class="clearfix" *ngIf="faultType=='2'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="1">更换天线</option>
									<option value="2">更换主机</option>
								</select>
							</div>
							<div class="clearfix" *ngIf="faultType=='3'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="1">更换手刹</option>
									<option value="2">更换主机</option>
								</select>
							</div>
							<div class="clearfix" *ngIf="faultType=='4'">
								<select class="form-control"  name="editGuide" style="width: 100%" [(ngModel)]='editGuide' >
									<option value="1">检查是否有短路</option>
								</select>
							</div>
						</div>
					</div>-->
				<!--</div>-->

				<div  *ngIf="pageType=='edit'">
					<div>
						<div> <h1 class="h1">维修记录</h1></div>
					
						<div class="form-group" *ngFor='let item of editRecord;let i=index;'>
							<label class="control-label col-sm-1 no-padding-right">维修记录{{i+1}}</label>
							<div class="col-sm-10">
								<div class="clearfix">
									<!--<select class="form-control modelSelect" name="editItem"  [attr.data]="item.editType"  style="width: 100%"  (change)="selectedChange($event,'editType',item)">
										<option value="1">更换传感器</option>
										<option value="2">更换小版</option>
									</select>-->
									<input type="text" [(ngModel)]='editRecord[i].content' class="form-control recordsItem" placeholder="请输入维修详细..."  />
								
								</div>
							</div>
							<div class="col-sm-1">
							<div *ngIf="i<editRecord.length-1" (click)="editItem_del(i)" class="addOrDel">
									-
								</div>
								<div *ngIf="i==editRecord.length-1" (click)="editItem_add()" class="addOrDel">
									+
								</div>
							</div>
						</div>
					</div>
					
					<div>
						<div> <h1 class="h1">故障状态</h1></div>
					
						<div class="form-group">
							<label class="control-label col-sm-1 no-padding-right">故障状态</label>
							<div class="col-sm-10">
								<div class="clearfix">
									<select class="form-control" name="faultSatatus" style="width: 100%" [(ngModel)]='faultSatatus'>
										<option value="0">待修复</option>
										<option value="1">已修复</option>
									</select>
								</div>
							</div>
						</div>
						
						<div class="form-group">
							<label class="control-label col-sm-1 no-padding-right">维修时间</label>
							<div class="col-sm-10">
								<div class="clearfix">
									<input type="text" [(ngModel)]='editTime' name="editTime" class="form-control"  autocomplete="off"  placeholder="请选择维修时间"   id="editTime"/>
								</div>
							</div>
						</div>
						
						<div class="form-group">
							<label class="control-label col-sm-1 no-padding-right">维修人员</label>
							<div class="col-sm-10">
								<div class="clearfix">
									<select class="form-control" name="editStaff" style="width: 100%" [(ngModel)]='editStaff'>
										<option value="">请选择</option>
										<option *ngFor="let _item of userList" [attr.value]="_item.text" > {{_item.text}} </option>
									</select>
								</div>
							</div>
						</div>
						
						<div class="form-group">
							<label class="control-label col-sm-1 no-padding-right">维修总结</label>
							<div class="col-sm-10">
								<div class="clearfix">
									<input type="text" [(ngModel)]='repairedConclusion' name="editTime" class="form-control"   placeholder="输入维修总结"  />
								</div>
							</div>
						</div>
					</div>
					
				</div>
				
				<!--<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">司机电话</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input type="text" [(ngModel)]='driverPhone' name="driverPhone" class="form-control"   placeholder="司机电话"  />
						</div>
					</div>
				</div>-->
				<div class="form-group clearfix">
					<label class="control-label col-sm-1 no-padding-right">GPS天线</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<select class="form-control" name="gpsAntenna" [(ngModel)]="gpsAntenna" style="width: 100%" (change)="gpsAntennaChange($event.target.value)">
								<option value="">请选择</option>
								<option *ngFor="let gpsObj of gpsOptions" [value]="gpsObj.value">{{gpsObj.text}}</option>
							</select>
						</div>
					</div>
				</div>
				
				<div class="form-group clearfix">
					<label class="control-label col-sm-1 no-padding-right">GSM天线</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<select class="form-control" name="gsmAntenna" [(ngModel)]="gsmAntenna" style="width: 100%" (change)="gsmAntennaChange($event.target.value)">
								<option value="">请选择</option>
								<option *ngFor="let gsmObj of gsmOptions" [value]="gsmObj.value">{{gsmObj.text}}</option>
							</select>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right">备注</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<textarea class="form-control" name="remark" rows="3" cols="4"  placeholder="输入需要描述的备注信息..."   [(ngModel)]='remark'></textarea>
						</div>
					</div>
				</div>
				<div class="form-group" *ngIf="pageType ==='edit' && beforeImageInfo.length != 0">
					<label class="control-label col-sm-1 no-padding-right">维修前图片</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<div class="row form-horizontal imagesInfo beforeImageInfo" *ngIf='beforeImageInfo.length != 0'>
								<div class="imagesList imagesList-sensor">
									<div *ngFor="let item of beforeImageInfo" class="imagesInfoFile">
										<div class="imgFileList">
											<label class="imgTitle">{{item.title}}</label>
											<div class="imgContList">
												<div class="imgCont" *ngFor="let row of item.localImg" (click)="bigimg('before',ImgBigModal,row)">
													<img class="imgSrc" [src]="row" [alt]="item.title"/>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group" *ngIf="pageType ==='edit' && afterImageInfo.length != 0">
					<label class="control-label col-sm-1 no-padding-right">维修后图片</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<div class="row form-horizontal imagesInfo afterImageInfo" *ngIf='afterImageInfo.length != 0'>
								<div class="imagesList imagesList-sensor">
									<div *ngFor="let item of afterImageInfo" class="imagesInfoFile">
										<div class="imgFileList" *ngIf='item.index != 6'>
											<label class="imgTitle">{{item.title}}</label>
											<div class="imgContList">
												<div class="imgCont" *ngFor="let row of item.localImg" (click)="bigimg('after',ImgBigModal,row)">
													<img class="imgSrc" [src]="row" [alt]="item.title"/>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group" *ngIf="pageType ==='edit' && otherImageInfo.length != 0">
					<label class="control-label col-sm-1 no-padding-right">其他</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<div class="row form-horizontal imagesInfo otherImageInfo" *ngIf='otherImageInfo.length != 0'>
								<div class="imagesList imagesList-sensor">
									<div *ngFor="let item of otherImageInfo" class="imagesInfoFile">
										<div class="imgFileList">
											<label class="imgTitle">其他</label>
											<div class="imgContList">
												<div class="imgCont" *ngFor="let row of item.localImg" (click)="bigimg('other',ImgBigModal,row)">
													<img class="imgSrc" [src]="row" alt="其他"/>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group clearfix" *ngIf="pageType ==='new'">
					<label class="control-label col-sm-1 no-padding-right">维修前图片</label>
					<div class="col-sm-10">
						<div class="addImgFileList beforeImage">
							<div class="addImgFileList-sensor" *ngFor="let item of beforeImageInfo">
								<div class="addImgFileList-multifile" *ngIf="item.index !=6">
									<span class="control-label">{{item.text}}</span>
									<div class="uploadlocation uploadlocation1 afterImageInfo"> 
										<div class="content-list">
											<div class="headImg" *ngFor="let list of item.localImg; let i = index">
												<div class="contentImg"><img class="img"  [src]="list" (click)="bigimg('before')"></div>
												<!-- <div class="deleteCont">
													<img class="bigImg" src="assets/img/bigImg.png" (click)="bigimg('before')" [attr.url]="list"/> -->
													<i class="deleteImg" (click)="deleteImg('before',item.index,i)"></i>
												<!-- </div> -->
											</div>
											<button type="button"  class="btn div_imgall">
												<div class="div_shuline"></div>
												<div class="div_hengline"></div>
												<input type="file" class="up" title=" " placeholder=" "  multiple (change)="multifileChange('before',item.index,$event.target.files)"/>
											</button>
										</div>
									</div>
								</div>
								<div class="addImgFileList-multifile" *ngIf="item.index ==6" style="display: none;"></div>
							</div>
						</div>
						
					</div>
				</div>
				<div class="form-group clearfix" *ngIf="pageType ==='new'">
					<label class="control-label col-sm-1 no-padding-right">维修后图片</label>
					<div class="col-sm-10">
						<div class="addImgFileList afterImage">
							<div class="addImgFileList-sensor" *ngFor="let item of afterImageInfo">
								<div class="addImgFileList-multifile" *ngIf="item.index !=6">
									<span class="control-label">{{item.text}}</span>
									<div class="uploadlocation uploadlocation1"> 
										<div class="content-list">
											<div class="headImg" *ngFor="let list of item.localImg; let i = index">
												<div class="contentImg"><img class="img"  [src]="list" (click)="bigimg('after')"></div>
												<!-- <div class="deleteCont">
													<img class="bigImg" src="assets/img/bigImg.png" (click)="bigimg('after')" [attr.url]="list"/> -->
													<i class="deleteImg" (click)="deleteImg('after',item.index,i)"></i>
												<!-- </div> -->
											</div>
											<button type="button"  class="btn div_imgall">
												<div class="div_shuline"></div>
												<div class="div_hengline"></div>
												<input type="file" class="up" title=" " placeholder=" "  multiple (change)="multifileChange('after',item.index,$event.target.files)"/>
											</button>
										</div>
									</div>
								</div>
								<div class="addImgFileList-multifile" *ngIf="item.index ==6" style="display: none;"></div>
							</div>
							
						</div>
						
					</div>
				</div>
				<div class="form-group clearfix" *ngIf="pageType ==='new'">
					<label class="control-label col-sm-1 no-padding-right">其他</label>
					<div class="col-sm-10">
						<div class="addImgFileList otherImage">
							<div class="addImgFileList-sensor" *ngFor="let item of afterImageInfo">
								<div class="addImgFileList-multifile" *ngIf="item.index ==6">
									<span class="control-label">{{item.text}}</span>
									<div class="uploadlocation uploadlocation1"> 
										<div class="content-list">
											<div class="headImg" *ngFor="let list of item.localImg; let i = index">
												<div class="contentImg"><img class="img"  [src]="list" (click)="bigimg('other')"></div>
												<!-- <div class="deleteCont">
													<img class="bigImg" src="assets/img/bigImg.png" (click)="bigimg('other')" [attr.url]="list"/> -->
													<i class="deleteImg" (click)="deleteImg('other',item.index,i)"></i>
												<!-- </div> -->
											</div>
											<button type="button"  class="btn div_imgall">
												<div class="div_shuline"></div>
												<div class="div_hengline"></div>
												<input type="file" class="up" title=" " placeholder=" "  multiple (change)="multifileChange('other',item.index,$event.target.files)"/>
											</button>
										</div>
									</div>
								</div>
								<div class="addImgFileList-multifile" *ngIf="item.index ==1 || item.index ==2 || item.index ==3 || item.index ==4 || item.index ==5" style="display: none;"></div>
							</div>
							
						</div>
						
					</div>
				</div>
				<div class="center">
					<button type="button"  (click)='submitEvent()' class="btn btn-primary" *ngIf="pageType ==='new'" >提交</button>
					<button type="button"  (click)='submitEvent()' class="btn btn-primary" *ngIf="pageType ==='edit'" >保存</button>
					<button type="button"  (click)='goBack()' class="btn default">返回</button>
				</div>
			</div>
			<!--</form>-->
			<div class="hr hr-dotted"></div>
		</div>
	</div>
	</div>
</div>